package com.bjsxt.mappers;

import com.bjsxt.domain.Coin;
import com.bjsxt.dto.CoinDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Description:
 * @ClassName: CoinDtoMapper
 * @Author: chenyu
 * @Date: 2025/3/19 15:59
 */
@Mapper(componentModel = "spring")
public interface CoinDtoMapper {
    CoinDtoMapper INSTANCE = Mappers.getMapper(CoinDtoMapper.class);

    Coin toConvertEntity(CoinDto source);

    List<Coin> toConvertEntity(List<CoinDto> source);


    CoinDto toConvertDto(Coin source);

    List<CoinDto> toConvertDto(List<Coin> source);
}
